﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class WebControls_LoginLink : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["Username"] != null)
        {
            lnkLoginLink.Visible = false;
        }
        string fileName = Convert.ToString(Page.RouteData.Values["fileName"]);
        lnkLoginLink.HRef = "~/WebAdmin/WebAdminLogin.aspx?fileName="+ fileName +"";
    }
}